package org.grow.took.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

@TableName("Player")
@Data//自动生成类的get，set方法还有tostring方法
public class Player {
    @TableId(type = IdType.AUTO)//使得playerId自增
    private Integer playerId;
    private String playerCode;
    private String nickname;
    private Integer goldCoin;
    private Integer silverCoin;
    private String profession;
    private String usernameFk;
    @Version
    private Integer version;



}
